<template>
	<view class="search" @tap="clickHandler">
		<view>
			<!--  -->
			<view>
				
			</view>
		</view>
		<!-- 搜索框后的操作按钮 -->
		<view ></view>
	</view>
</template>

<script>
	export default {
		props: {
			disabled: {
				type:Boolean,
				default:false
			},
			shape: {
				type:Boolean,
				default:true
			}
		},
		name:"iPetSearch",
		data() {
			return {
				
			};
		},
		methods:{
			// disabled为true的时候触发，意味着用户可能进行页面跳转
			clickHandler() {
				if(this.disabled) this.$emit('click');
			}
		}
	}
</script>

<style scoped lang="scss">
	.search{
		display: flex;
		align-items: center;
		padding: 0 18rpx;
		flex: 1;
	}
</style>
